package cn.cvs.controller;

        import cn.cvs.pojo.SysUser;
        import cn.cvs.service.SysUserService;
        import org.springframework.beans.factory.annotation.Autowired;
        import org.springframework.beans.factory.annotation.Qualifier;
        import org.springframework.stereotype.Controller;
        import org.springframework.ui.Model;
        import org.springframework.web.bind.annotation.GetMapping;
        import org.springframework.web.bind.annotation.PostMapping;
        import org.springframework.web.bind.annotation.RequestParam;

        import javax.servlet.http.HttpServletRequest;
        import javax.servlet.http.HttpSession;

@Controller
public class HelloController {
    @GetMapping(value = "/foot")
    public String hello(Model model){
        return "login";
    }
    @GetMapping(value = "tk")
    public String tc(HttpServletRequest request) {
        request.getSession().removeAttribute("userSession");
        return "login";
    }
}
